package com.mark.mall.web.platform.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;

/**
 * @author admin
 */
@Getter
public enum SexEnum implements IEnum<Integer> {

    /**
     * 性别男
     */
    MAN(1, "男"),

    /**
     * 性别女
     */
    WOMAN(2, "女");

    private int value;
    private String desc;

    SexEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
